{{ define "main" }}
<section class="section container-fluid mt-n3 pb-5">
  <div class="row justify-content-center">
    <div class="col-lg-9 pb-5 text-center">
      <svg xmlns="http://www.w3.org/2000/svg"
           xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0" y="0"
           width="100%" height="100%"
           viewBox="36.23964416503906 98.99165069580079 267.52071166992187 52.0167024230957"
           preserveAspectRatio="xMidYMid meet" color-interpolation-filters="sRGB">
        <g>
          <defs>
            <linearGradient id="92" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#fa71cd"></stop>
              <stop offset="100%" stop-color="#9b59b6"></stop>
            </linearGradient>
            <linearGradient id="93" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#f9d423"></stop>
              <stop offset="100%" stop-color="#f83600"></stop>
            </linearGradient>
            <linearGradient id="94" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#0064d2"></stop>
              <stop offset="100%" stop-color="#1cb0f6"></stop>
            </linearGradient>
            <linearGradient id="95" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#f00978"></stop>
              <stop offset="100%" stop-color="#3f51b1"></stop>
            </linearGradient>
            <linearGradient id="96" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#7873f5"></stop>
              <stop offset="100%" stop-color="#ec77ab"></stop>
            </linearGradient>
            <linearGradient id="97" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#f9d423"></stop>
              <stop offset="100%" stop-color="#e14fad"></stop>
            </linearGradient>
            <linearGradient id="98" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#009efd"></stop>
              <stop offset="100%" stop-color="#2af598"></stop>
            </linearGradient>
            <linearGradient id="99" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#ffcc00"></stop>
              <stop offset="100%" stop-color="#00b140"></stop>
            </linearGradient>
            <linearGradient id="100" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#d51007"></stop>
              <stop offset="100%" stop-color="#ff8177"></stop>
            </linearGradient>
            <linearGradient id="102" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#a2b6df"></stop>
              <stop offset="100%" stop-color="#0c3483"></stop>
            </linearGradient>
            <linearGradient id="103" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#7ac5d8"></stop>
              <stop offset="100%" stop-color="#eea2a2"></stop>
            </linearGradient>
            <linearGradient id="104" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#00ecbc"></stop>
              <stop offset="100%" stop-color="#007adf"></stop>
            </linearGradient>
            <linearGradient id="105" x1="0%" y1="0%" x2="100%" y2="0%">
              <stop offset="0%" stop-color="#b88746"></stop>
              <stop offset="100%" stop-color="#fdf5a6"></stop>
            </linearGradient>
          </defs>
          <g fill="currentColor" class="icon-text-wrapper icon-svg-group iconsvg"
             transform="translate(38.862396240234375,101.61440086364746)">
            <g class="iconsvg-imagesvg" transform="translate(0,0.09565925598144531)">
              <g>
                <rect fill="currentColor" fill-opacity="0" stroke-width="2" x="0"
                      y="0"
                      width="49.20000000000002" height="46.57988165680475"
                      class="image-rect"></rect>
                <svg x="0" y="0" width="49.20000000000002" height="46.57988165680475"
                     filtersec="colorsb1094613929" class="image-svg-svg primary"
                     style="overflow: visible;">
                  <svg xmlns="http://www.w3.org/2000/svg"
                       viewBox="-0.009206931106746197 -0.0044399043545126915 96.12322998046875 91.00444030761719">
                    <path
                        d="M77.63 9.75c-4.41 0-8.82.05-13.23 0-3.1-.05-5.61-1.12-5.91-4.66C58.25 2.18 60.61.2 64.54.16 73 .06 81.38.08 89.8.15c3.13 0 6 .78 6.3 4.66.22 3-2.16 4.84-6.44 4.93-4 .09-8 0-12 0z"
                        fill="#86aaf6"></path>
                    <path
                        d="M48.3 77.33h-12c-3 0-5.65-1.13-5.56-4.43.08-3.12 2.55-4.48 5.61-4.48h24.46c3.1 0 4.9 1.59 5 4.55.08 3.18-2.11 4.39-5 4.4H48.38z"
                        fill="currentColor"></path>
                    <path
                        d="M23.75 13.74c3.61 0 7.23-.07 10.84 0 3 .08 5.57 1.53 5.57 4.58 0 2.9-2.28 4.91-5.34 5-7.49.14-15 .17-22.49 0-3-.07-4.64-2.06-4.54-5.06s1.93-4.36 4.72-4.45c3.74-.11 7.49 0 11.24 0z"
                        fill="#86aaf6"></path>
                    <path
                        d="M46.47 37c-2.4 0-4.82.16-7.21 0a4.71 4.71 0 0 1-4.64-5.08c.05-2.78 2-4.31 4.79-4.34 4.68-.05 9.36-.07 14 0 3.05.05 5.39 1.35 5.25 4.72-.14 3.16-2.35 4.65-5.4 4.78-2.27.09-4.54 0-6.82 0zM35.11 41.26c2.53 0 5.07-.19 7.58.05a4.3 4.3 0 0 1 4.24 4.48 4.32 4.32 0 0 1-4.09 4.64 78.55 78.55 0 0 1-15.56 0 4.29 4.29 0 0 1-4-4.68 4.28 4.28 0 0 1 4.27-4.44c2.45-.24 5.03-.05 7.56-.05z"
                        fill="currentColor"></path>
                    <path
                        d="M61.9 41.2a68.73 68.73 0 0 1 7.18 0c2.63.28 4.54 1.71 4.54 4.63s-1.93 4.48-4.55 4.61a132.09 132.09 0 0 1-14.35 0c-2.85-.17-4.57-2-4.44-5.12s2.22-4.05 4.84-4.2c2.25-.13 4.52 0 6.78 0z"
                        fill="currentColor"></path>
                    <path
                        d="M42 82.12c2.26 0 4.54-.16 6.78 0s3.95 1.51 4 4.11c.08 2.76-1.43 4.41-4 4.52a138.29 138.29 0 0 1-14-.06 4.07 4.07 0 0 1-4.14-4.49c.16-2.59 1.93-4 4.52-4.17C37.43 82 39.7 82 42 82z"
                        fill="currentColor"></path>
                    <path
                        d="M72.21 27.52a51.66 51.66 0 0 1 6 .05 4.39 4.39 0 0 1 4.26 4.85 4.28 4.28 0 0 1-4.23 4.47 87.29 87.29 0 0 1-11.55 0c-2.77-.21-4.86-2-4.79-4.93s2.3-4.32 5.15-4.47c1.73-.09 3.46 0 5.19 0z"
                        fill="currentColor"></path>
                    <path
                        d="M26.79 9.89a38.57 38.57 0 0 1-5.14-.63 4 4 0 0 1-3.34-3.94A4.25 4.25 0 0 1 21.49.79 25.41 25.41 0 0 1 32.93.52a4.36 4.36 0 0 1 3.67 4.59c0 2.54-1.6 3.9-3.88 4.33a55.7 55.7 0 0 1-5.93.45zM61.58 22.71c-1.74 0-3.48.05-5.22 0-2.23-.09-3.92-1-4.27-3.41a4.1 4.1 0 0 1 3.11-4.95 30 30 0 0 1 12.73-.17c2.34.41 3.51 2.43 3.29 4.86-.25 2.59-2 3.65-4.42 3.69h-5.22zM56.48 63.58a42.92 42.92 0 0 1-5.2 0 3.92 3.92 0 0 1-3.67-4.06c-.06-2.24 1-4 3.3-4.4a34.39 34.39 0 0 1 11.54 0c2.3.37 3.28 2.08 3.18 4.4s-1.22 3.85-3.56 4.08c-1.85.12-3.73-.03-5.59-.02z"
                        fill="currentColor"></path>
                    <path
                        d="M23.13 37.08h-1.6c-4.23-.18-6.47-1.94-6.38-5s2.33-4.64 6.6-4.71c1.6 0 3.2 0 4.79.05 2.84.15 5 1.38 5.14 4.45s-1.92 4.81-5 5.13a32.87 32.87 0 0 1-3.58 0zM7.43 0c1.5.1 2.7.09 3.88.28A4.15 4.15 0 0 1 15 4c.36 2.19-.32 4.18-2.35 5a12.37 12.37 0 0 1-9.72 0A4.26 4.26 0 0 1 0 4.67 4.91 4.91 0 0 1 3.8.48 18.51 18.51 0 0 1 7.43 0z"
                        fill="#86aaf6"></path>
                    <path
                        d="M81.78 13.75c2.13 0 4.35-.2 5.86 1.8s1.61 4.2-.17 6.17c-2 2.17-8.86 2.36-11.29.33-2.07-1.74-2.24-3.89-.86-6.08 1.52-2.42 4.04-2.26 6.46-2.22z"
                        fill="#86aaf6"></path>
                    <path
                        d="M36.83 63.73c-4 0-6.53-1.79-6.21-4.59.43-3.79 3.3-4.45 6.48-4.44 4.17 0 6.12 1.52 6 4.69s-1.85 4.37-6.27 4.34zM61.36 91c-2.52-.29-4.35-1.6-4.37-4.23s1.53-4.57 4.41-4.63 4.6 1.59 4.6 4.35-1.77 4.29-4.64 4.51z"
                        fill="currentColor"></path>
                  </svg>
                </svg>
              </g>
            </g>
            <g transform="translate(42.20000076293945,0)">
              <g fill-rule="" class="tp-name iconsvg-namesvg">
                <g transform="scale(1.7400000000000007)">
                  <g>
                    <path
                        d="M19.16 0L17.76-5.84 10-5.84 8.6 0 0 0 8.6-26.64 19.58-26.64 27.81 0 19.16 0ZM14.02-20.89L13.84-20.89 11.08-11.03 16.64-11.03 14.02-20.89ZM52.12-8.79L54.41 0 45.57 0 43.98-6.73Q43.89-7.1 43.68-8.02 43.47-8.93 43.19-9.37 42.91-9.82 42.39-9.96L42.39-9.96Q41.09-9.91 38.56-9.91L38.56-9.91 38.56 0 30.15 0 30.15-26.41Q35.8-26.83 40.71-26.83L40.71-26.83Q45.15-26.83 47.91-26.1 50.67-25.38 52.05-23.63 53.43-21.87 53.43-18.84L53.43-18.84Q53.43-15.99 52.12-14.37 50.81-12.76 47.91-12.43L47.91-12.43 47.91-12.15Q49.55-12.01 50.64-11.1 51.74-10.19 52.12-8.79L52.12-8.79ZM38.56-15.19Q38.98-15.14 40.2-15.14L40.2-15.14Q43.8-15.14 44.4-15.75L44.4-15.75Q44.96-16.31 44.96-18.37L44.96-18.37Q44.96-20.29 43.96-20.99 42.96-21.69 40.66-21.69L40.66-21.69Q40.15-21.69 38.56-21.59L38.56-21.59 38.56-15.19ZM74.08 0L72.68-5.84 64.92-5.84 63.52 0 54.92 0 63.52-26.64 74.51-26.64 82.73 0 74.08 0ZM68.94-20.89L68.76-20.89 66-11.03 71.56-11.03 68.94-20.89ZM84.32-8.69L84.32-15.38 98.34-15.38 98.34-8.69 84.32-8.69ZM99.84 0.05L106.62-13.65 100.35-26.64 108.95-26.64 113.25-16.17 117.69-26.64 126.06-26.64 119.89-13.65 126.48 0.05 117.88 0.05 113.25-11.26 108.49 0.05 99.84 0.05Z"
                        transform="translate(0, 26.829999923706055)"></path>
                  </g>
                </g>
              </g>
            </g>
          </g>
          <defs v-gra="od"></defs>
        </g>
      </svg>
    </div>
    <div class="col-lg-10 col-xl-10 text-center">
      <p class="lead">{{ .Params.lead | safeHTML }}</p>
      <a class="btn btn-primary btn-cta rounded-pill btn-lg my-3"
         href="docs/{{ if site.Params.doks.docsVersioning }}{{ site.Params.doks.docsVersion }}/{{ end }}intro/getting-started/"
         role="button">{{ i18n "get_started" }}</a>
      {{ .Content }}
    </div>
  </div>
</section>
{{ end }}

{{ define "sidebar-prefooter" }}
{{ if site.Params.doks.backgroundDots -}}
<div class="d-flex justify-content-start">
  <div class="bg-dots"></div>
</div>
{{ end -}}
{{ if eq $.Site.Language.LanguageName "English" }}
<section class="section section-md section-features">
  <div class="container">
    <div class="row justify-content-center text-center">
      <div class="col-lg-5 text-start">
        <h2 class="h4">Like YARA, but better</h2>
        YARA-X is a re-incarnation of <a href="https://virustotal.github.io/yara">YARA</a>, with a
        focus on user-friendliness, performance and safety. <a href="docs/intro/yara-x-vs-yara/">Why
        it's better?</a>
      </div>
      <div class="col-lg-5 text-start">
        <h2 class="h4">99% rule compatible</h2>
        Most of your YARA rules will work with YARA-X without any changes. If not, it should be
        for the better. Learn <a href="docs/writing_rules/differences-with-yara">more</a>.
      </div>
      <div class="col-lg-5 text-start">
        <h2 class="h4">Easy integration</h2>
        YARA-X is written in Rust, but we provide APIs for <a href="docs/api/c/c-/">C/C++</a>,
        <a href="docs/api/python">Python</a> and <a href="docs/api/go">Go</a>.
      </div>
    </div>
  </div>
</section>
{{ end }}
{{ end }}

{{ define "sidebar-footer" }}
{{ if site.Params.doks.sectionFooter -}}
<section class="section section-md container-fluid bg-light">
  <div class="row justify-content-center text-center">
    <div class="col-lg-7">
      <h2 class="mt-2">Start building with Doks today</h2>
      <a class="btn btn-primary rounded-pill px-4 my-2"
         href="/docs/{{ if site.Params.doks.docsVersioning }}{{ site.Params.doks.docsVersion }}/{{ end }}prologue/introduction/"
         role="button">{{ i18n "get-started" }}</a>
    </div>
  </div>
</section>
{{ end -}}
{{ end }}
